import Card from "./Card";
import React from "react";

type CaptainProps = {
    id: number;
    first_name: string;
    last_name: string;
    image: string;
    experience: number;
};

export default function CaptainCard({ id, first_name, last_name, image, experience }: CaptainProps) {
    const details = (
        <>
            <p><strong>Имя:</strong> {first_name} {last_name}</p>
            <p><strong>Стаж:</strong> {experience} лет</p>
        </>
    );

    return (
        <Card
            id={id}
            name={`${first_name} ${last_name}`}
            image={image}
            details={details}
            link={`/admin/captains/${id}?id=${id}`}
        />
    );
}
